<!-- 列表片段 -->
<!--<div class="row-fluid">-->
    <div class="col-xs-12">
        <table class="table table-striped table-bordered table-hover table-condensed">
            <thead>
            <tr>
                <th style="max-width: 10px; overflow: hidden;">任务ID</th>
                <th style="max-width: 15px; overflow: hidden;">状态</th>
                <th style="max-width: 30px; overflow: hidden;">URL</th>
                <th style="max-width: 15px; overflow: hidden;">专区</th>
                <!--<th>标题</th>-->
                <th style="max-width: 15px; overflow: hidden;">VID</th>
                <!--<th>开始时间</th>
                <th>结束时间</th>-->
            </tr>
            </thead>
            <tbody>
            <{foreach $list as $l}>
            <tr>
                <td style="max-width: 10px; overflow: hidden;"><{$l.task_id}></td>
                <td style="max-width: 15px; overflow: hidden;"><{if $l.status eq 0}>抓取中<{elseif $l.status eq 1}>成功<{elseif $l.status eq 2}>失败<{/if}></td>
                <td class="line-url" style="max-width: 30px; overflow: hidden;"><{$l.url}></td>
                <td style="max-width: 15px; overflow: hidden;"><{$l.channel}></td>
                <!--<td style="width: 50px; overflow: hidden;"><{$l.title}></td>-->
                <td style="max-width: 15px; overflow: hidden;"><{$l.vid}></td>
                <!--<td style="width: 40px; overflow: hidden;"><{date('Y-m-d H:i:s', $l.start_time)}></td>
                <td style="width: 40px; overflow: hidden;"><{date('Y-m-d H:i:s', $l.end_time)}></td>-->
            </tr>
            <{/foreach}>
            </tbody>
        </table>
    </div>
<!--
</div>-->

<div style="text-align: center; margin-left: auto;margin-right: auto;">
<{bs3page page=$pages r='grab/tasklist' status=$status}>
</div>

<script>
    $('.line-url').click(function () {
        $(this).select();
    });
</script>